package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 需求汇总表
 * </p>
 *
 * @author LX
 * @since 2018-09-11
 */
@TableName("erp_orderd")
public class ErpOrderd extends Model<ErpOrderd> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 目标客户
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 部门
     */
    private String grounp;
    /**
     * 日期
     */
    private String dt;
    /**
     * 业务经理
     */
    @TableField("b_manager")
    private String bManager;
    @TableField("sheet_id")
    private String sheetId;
    /**
     * 计划是否完成0未完成
     */
    @TableField("word_state")
    private Integer wordState;


    private transient ErpOrderdMateriel orderdMateriels;
    
    private transient List<ErpOrderdMateriel> matList;
    
    

    public List<ErpOrderdMateriel> getMatList() {
		return matList;
	}

	public void setMatList(List<ErpOrderdMateriel> matList) {
		this.matList = matList;
	}

	public ErpOrderdMateriel getOrderdMateriels() {
        return orderdMateriels;
    }

    public void setOrderdMateriels(ErpOrderdMateriel orderdMateriels) {
        this.orderdMateriels = orderdMateriels;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getGrounp() {
        return grounp;
    }

    public void setGrounp(String grounp) {
        this.grounp = grounp;
    }

    public String getDt() {
        return dt;
    }

    public void setDt(String dt) {
        this.dt = dt;
    }

    public String getbManager() {
        return bManager;
    }

    public void setbManager(String bManager) {
        this.bManager = bManager;
    }

    public String getSheetId() {
        return sheetId;
    }

    public void setSheetId(String sheetId) {
        this.sheetId = sheetId;
    }

    public Integer getWordState() {
        return wordState;
    }

    public void setWordState(Integer wordState) {
        this.wordState = wordState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpOrderd{" +
        ", id=" + id +
        ", customerId=" + customerId +
        ", grounp=" + grounp +
        ", dt=" + dt +
        ", bManager=" + bManager +
        ", sheetId=" + sheetId +
        ", wordState=" + wordState +
        "}";
    }
}
